<?php
// +-------------------------------------------------------------------
// | 
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Admin\Controller;

use Kcdns\Admin\Controller\CommonController;

class WarehouseYunController extends CommonController
{
    public function add_num()
    {
    if (IS_POST) {	
			try {
				OE('yun')->add_num(I('post.'));
				$this->success('操作成功');
			} catch (\Exception $e) {
				$this->error($e->getMessage());
			}
		} else {
		   $goods_list = O('goods')->getGoodsList();
		   $this->assign('goods_list',$goods_list);
		   $this->display();
		}
    }
    
    public function getRealName()
    {
    	$result = OE('yun')->getRealName(I('post.username'));
    	$this->ajaxReturn(['result'=>$result]);
    }
    
    
}